<!-- apps/frontend/modules/item/templates/showSuccess.php -->
<?php if ($sf_request->getParameter('token') == $item->getToken()): ?>
  <?php include_partial('item/admin', array('item' => $item)) ?>
<?php endif ?>

<?php slot('title') ?>
  <?php echo sprintf('You are looking at %s', $item->getModelNo()) ?>
<?php end_slot(); ?>
<?php use_stylesheet('item.css') ?>
<?php use_helper('Text') ?>
<?php $owner = Doctrine::getTable('HisOwner')->find($item->getOwnerId()); ?>
<?php $category = Doctrine::getTable('HisCategory')->find($item->getCategoryId()); ?>
 
<div id="item">
  <h1><?php echo $category ?></h1>
  <h2><?php echo $owner ?></h2>
</div>

 
  <div class="description">
  <p>Description:<br><?php echo simple_format_text($item->getDescription()) ?> <br>
  Model No: <?php echo $item->getModelNo() ?> <br>
  Serial No: <?php echo $item->getSerialNo() ?> <br>
  Historical Cost: <?php echo $item->getHistoricalCost() ?> <br>
  Date Purchased: <?php echo $item->getDatePurchased() ?> 
  
  
  </p>
  
  </div>
 
  <div style="padding: 20px 0">
    <a href="<?php echo url_for('item_edit', $item) ?>">Edit</a>  </div>